package com.yxh.springdemo.bean;

/**
 * @Author: yuxinhang
 * @Date: 2022/6/14 16:04
 * @Description 地址类，存储地址信息
 */
public class Address {

    /**
     * 省份
     */
    private String province;

    /**
     * 城市
     */
    private String city;

    /**
     * 详细住址
     */
    private String detailAddress;

    public Address() {
    }

    public Address(String province, String city, String detailAddress) {
        this.province = province;
        this.city = city;
        this.detailAddress = detailAddress;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getDetailAddress() {
        return detailAddress;
    }

    public void setDetailAddress(String detailAddress) {
        this.detailAddress = detailAddress;
    }

    @Override
    public String toString() {
        return "Address{" +
                "province='" + province + '\'' +
                ", city='" + city + '\'' +
                ", detailAddress='" + detailAddress + '\'' +
                '}';
    }
}
